/**
 *    @file       main.cpp
 *
 *    @brief      
 *    @details
 *
 *    @version    1.0
 *    @date       12/11/2012 11:06:20 AM
 *
 *    @author     Theophilus, wangtf418@gmail.com
 */
#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <errno.h>
#include <dirent.h>
#include <openssl/err.h>

#include "baseframe.h"
#include "testsrv.h"
#include "message.h"

int main()
{
	server::create<testsrv>();

	bf_int_t ret = server::get()->init();
	if (ret != BF_OK)
	{
		return BF_ERROR;
	}

	ret = server::get()->start();
	if (ret != BF_OK)
	{
		return BF_ERROR;
	}

	server::get()->process_cycle();
	return 0;
}


